package com.wfit.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("mall_commodity")
public class Commodity {
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @TableField(value = "name")
    private String name;

    @TableField(value = "image")
    private String image;

    @TableField(value = "price")
    private Double price;

    @TableField(value = "description")
    private String description;

    @TableField(value = "status")
    private String status;

    @TableField(value = "sale")
    private Integer sale;
    @TableField(value = "sort_id")
    private String sortId;

    @TableField(value = "number")
    private Integer number;

    @TableField(value = "create_time")
    private LocalDateTime createTime;

    @TableField(value = "update_user")
    private Long updateUser;

    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    @TableField(value = "create_user")
    private Long createUser;

    @TableField(value = "c_sort_id")
    private String cSortId;
}
